package org.hyl.javabase.序列化;


public class Employee implements java.io.Serializable
{
   public String name;
   public String address;
   public transient int SSN;//如果用transient声明一个实例变量，当对象存储时，它的值不需要维持。换句话来说就是，用transient关键字标记的成员变量不参与序列化
   public int number;
   public void mailCheck()
   {
      System.out.println("Mailing a check to " + name
                           + " " + address);
   }
}
